﻿using System.Runtime.Serialization;

namespace SVTTranslateTextEngine.Core.Entries
{
    //{ "data": { "translations": [ { "translatedText": "Wind" } ] } } 

    /*
         200 OK

        {
            "data": {
                "translations": [
                    {
                        "translatedText": "Hallo Welt",
                        "detectedSourceLanguage": "en"
                    }
                ]
            }
        }

         */

    [DataContract]
    public class TranslationData
    {
        /// <summary>
        /// Value for JSON data.translations
        /// </summary>
        [DataMember(Order = 0, Name = "translations")]
        public TranslationItem[] Translations { get; set; }
    }
}